package com.itheima.kejianxing;

import java.time.Month;

public class MyThread1 extends  Thread {
    @Override
    public void run() {
        while(true){

            Money.lock.lock();
            if(Money.money!=100000){
                System.out.println("结婚基金已经不是十万了");
                break;
            }
            Money.lock.unlock();

        }


    }
}